<?php
/**
 * User: zhangligang
 * Email: tzhang2450@163.com
 * Date: 2018/7/25
 * Time: 上午6:59
 */

namespace App\Http\Controllers;


use Illuminate\Http\Request;

class ManagerController extends Controller
{

    public function __construct()
    {
        parent::__construct();
    }

    public function apartIndex(Request $request)
    {
        return $this->baseView($request, 'manager.apart.index', ['menu' => 'apart', 'sub' => 'index']);
    }

    public function apartView(Request $request, $id)
    {
        return $this->baseView($request, 'manager.apart.view', ['menu' => 'apart', 'sub' => 'index', 'id' => $id]);
    }

    public function apartCreate(Request $request)
    {
        return $this->baseView($request, 'manager.apart.create', ['menu' => 'apart', 'sub' => 'index']);
    }

    public function apartEdit(Request $request, $id)
    {
        return $this->baseView($request, 'manager.apart.edit', ['menu' => 'apart', 'sub' => 'index', 'id' => $id]);
    }

    public function apartRegion(Request $request)
    {
        return $this->baseView($request, 'manager.apart.region', ['menu' => 'apart', 'sub' => 'region']);
    }

    public function apartRegionCreate(Request $request)
    {
        return $this->baseView($request, 'manager.apart.region-create', ['menu' => 'apart', 'sub' => 'region']);
    }

    public function apartRegionEdit(Request $request, $id)
    {
        return $this->baseView($request, 'manager.apart.region-edit', ['menu' => 'apart', 'sub' => 'region', 'id' => $id]);
    }

    public function apartStandard(Request $request)
    {
        return $this->baseView($request, 'manager.apart.standard', ['menu' => 'apart', 'sub' => 'standard']);
    }

    public function apartStandardCreate(Request $request)
    {
        return $this->baseView($request, 'manager.apart.standard-create', ['menu' => 'apart', 'sub' => 'standard']);
    }

    public function apartStandardEdit(Request $request, $id)
    {
        return $this->baseView($request, 'manager.apart.standard-edit', ['menu' => 'apart', 'sub' => 'standard', 'id' => $id]);
    }

    public function programIndex(Request $request)
    {
        return $this->baseView($request, 'manager.program.index', ['menu' => 'program', 'sub' => 'index']);
    }

    public function programView(Request $request, $id)
    {
        return $this->baseView($request, 'manager.program.view', ['menu' => 'program', 'sub' => 'index', 'id' => $id]);
    }

    public function programCreate(Request $request)
    {
        return $this->baseView($request, 'manager.program.create', ['menu' => 'program', 'sub' => 'index']);
    }

    public function programEdit(Request $request, $id)
    {
        return $this->baseView($request, 'manager.program.edit', ['menu' => 'program', 'sub' => 'index', 'id' => $id]);
    }

    public function programApart(Request $request, $id)
    {
        return $this->baseView($request, 'manager.program.apart', ['menu' => 'program', 'sub' => 'index', 'program_id' => $id]);
    }

    public function programUser(Request $request, $id)
    {
        return $this->baseView($request, 'manager.program.user', ['menu' => 'program', 'sub' => 'index', 'program_id' => $id]);
    }

    public function programUserApart(Request $request, $id)
    {
        return $this->baseView($request, 'manager.program.user-apart', ['menu' => 'program', 'sub' => 'index', 'program_id' => $id]);
    }

    public function contractIndex(Request $request)
    {
        return $this->baseView($request, 'manager.contract.index', ['menu' => 'contract', 'sub' => 'index']);
    }

    public function contractView(Request $request, $id)
    {
        return $this->baseView($request, 'manager.contract.view', ['menu' => 'contract', 'sub' => 'index', 'id' => $id]);
    }

    public function contractEdit(Request $request, $id)
    {
        return $this->baseView($request, 'manager.contract.edit', ['menu' => 'contract', 'sub' => 'index', 'id' => $id]);
    }

    public function contractCreate(Request $request)
    {
        return $this->baseView($request, 'manager.contract.create', ['menu' => 'contract', 'sub' => 'index']);
    }

    public function contractTemplate(Request $request)
    {
        return $this->baseView($request, 'manager.contract.template', ['menu' => 'contract', 'sub' => 'template']);
    }

    public function templateCreate(Request $request)
    {
        return $this->baseView($request, 'manager.contract.template-create', ['menu' => 'contract', 'sub' => 'template']);
    }

    public function templateEdit(Request $request, $id)
    {
        return $this->baseView($request, 'manager.contract.template-edit', ['menu' => 'contract', 'sub' => 'template', 'id' => $id]);
    }

    public function templateView(Request $request, $id)
    {
        return $this->baseView($request, 'manager.contract.template-view', ['menu' => 'contract', 'sub' => 'template', 'id' => $id]);
    }

    public function rentIndex(Request $request)
    {
        return $this->baseView($request, 'manager.rent.index', ['menu' => 'rent', 'sub' => 'index']);
    }

    public function rentCreate(Request $request)
    {
        return $this->baseView($request, 'manager.rent.create', ['menu' => 'rent', 'sub' => 'index']);
    }

    public function rentEdit(Request $request, $id)
    {
        return $this->baseView($request, 'manager.rent.edit', ['menu' => 'rent', 'sub' => 'index', 'id' => $id]);
    }

    public function retireIndex(Request $request)
    {
        return $this->baseView($request, 'manager.retire.index', ['menu' => 'retire', 'sub' => 'index']);
    }

    public function repairIndex(Request $request)
    {
        return $this->baseView($request, 'manager.repair.index', ['menu' => 'repair', 'sub' => 'index']);
    }

    public function noticeIndex(Request $request)
    {
        return $this->baseView($request, 'manager.notice.index', ['menu' => 'notice', 'sub' => 'index']);
    }

    public function noticeCreate(Request $request)
    {
        return $this->baseView($request, 'manager.notice.create', ['menu' => 'notice', 'sub' => 'index']);
    }

    public function noticeEdit(Request $request, $id)
    {
        return $this->baseView($request, 'manager.notice.edit', ['menu' => 'notice', 'sub' => 'index', 'id' => $id]);
    }

    public function noticeView(Request $request, $id)
    {
        return $this->baseView($request, 'manager.notice.view', ['menu' => 'notice', 'sub' => 'index', 'id' => $id]);
    }

    public function teacherIndex(Request $request)
    {
        return $this->baseView($request, 'manager.teacher.index', ['menu' => 'teacher', 'sub' => 'index']);
    }

    public function teacherView(Request $request, $id)
    {
        return $this->baseView($request, 'manager.teacher.view', ['menu' => 'teacher', 'sub' => 'index', 'id' => $id]);
    }

    public function feeWater(Request $request)
    {
        return $this->baseView($request, 'manager.fee.water', ['menu' => 'fee', 'sub' => 'water']);
    }

    public function feeElectric(Request $request)
    {
        return $this->baseView($request, 'manager.fee.electric', ['menu' => 'fee', 'sub' => 'electric']);
    }

    public function feeGas(Request $request)
    {
        return $this->baseView($request, 'manager.fee.gas', ['menu' => 'fee', 'sub' => 'gas']);
    }

    public function waterCreate(Request $request)
    {
        return $this->baseView($request, 'manager.fee.create-water', ['menu' => 'fee', 'sub' => 'water']);
    }

    public function electricCreate(Request $request)
    {
        return $this->baseView($request, 'manager.fee.create-electric', ['menu' => 'fee', 'sub' => 'electric']);
    }

    public function gasCreate(Request $request)
    {
        return $this->baseView($request, 'manager.fee.create-gas', ['menu' => 'fee', 'sub' => 'gas']);
    }

    public function userApart(Request $request, $id)
    {
        return $this->baseView($request, 'manager.apart.user-apart', ['menu' => 'apart', 'sub' => 'index', 'id' => $id]);
    }

    public function role(Request $request)
    {
        return $this->baseView($request, 'manager.role.index', ['menu' => 'role', 'sub' => 'index']);
    }

}